define(["VT", "VTRouter", "request", "base", "text", "button", "router"], (
  require,
  exports,
  module
) => {
  const { get, post, put, del } = require("request"),
    base = require("base"),
    text = require("text"),
    button = require("button"),
    router = require("router");

  const app = new DOM({
    router,
    use: {
      base,
      useRouter,
    },
    App: {
      data() {
        return {
          title2: "首页",
          title: "按钮文字",
          title1: "按钮文字1",
          disabled: true,
        };
      },
      components: {
        text,
        button,
      },
      methods: {
        buttonClick(e, target) {
          console.log("click", e, target, this);
        },
      },
    },
  });
  app.ready(function () {
    this.$api = { get, post, put, del };
    this.$api.get("/test").then((res) => console.log(res));
    console.log(this);
  });
});
